/*
 * lab9D2.c
 * CSIS 248 Operating System Programming
 */
#include <stdio.h>
#include <stdlib.h>

#define SIZE 1000000

int main() {
	double a[SIZE];

	int i = 0;
	for (  ; i < SIZE; i++) {
		// allocate memory for array "b"
		double* b = (double*) malloc(SIZE * sizeof(double));
		if (b == NULL) {
			fprintf(stderr, "Not able to allocate memory for b\n");
			return -1;
		}

		printf("  i is %d\n", i );
	}
}
